-- GENERATED SPELL FOR [Lieutenant Benedict] --


function spell0_3192(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_3192', 563, 1)
end

function spell1_3192(pUnit, Event) --@Improved Blocking,Self--
pUnit:FullCastSpellOnTarget(3248,pUnit)
pUnit:RegisterEvent('Sorts_3192', 6340, 1)
end

function spell2_3192(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(72,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3192', 6000, 1)
end

function Sorts_3192(pUnit, Event)
local choix_sorts_3192 = math.random(0, 2)
if choix_sorts_3192 == 0 then
pUnit:RegisterEvent('spell0_3192', 1, 1)
end
if choix_sorts_3192 == 1 then
pUnit:RegisterEvent('spell1_3192', 1, 1)
end
if choix_sorts_3192 == 2 then
pUnit:RegisterEvent('spell2_3192', 1, 1)
end
end

function mob3192_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3192', math.random(1500, 3000), 1)
end

function mob3192_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3192_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3192_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3192, 1, 'mob3192_Action')
RegisterUnitEvent(3192, 2, 'mob3192_Leave')
RegisterUnitEvent(3192, 3, 'mob3192_Kill')
RegisterUnitEvent(3192, 4, 'mob3192_Die')
